package com.gljx.web.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gljx.web.Entity.Remunerationasc;
import org.springframework.stereotype.Component;

@Component
public interface RemunerationascMapper {
	int deleteByPrimaryKey(String fid);

	int insert(Remunerationasc record);

	int insertSelective(Remunerationasc record);

	Remunerationasc selectByPrimaryKey(String fid);

	int updateByPrimaryKeySelective(Remunerationasc record);

	int updateByPrimaryKey(Remunerationasc record);

	/**
	 * 查询顶级定薪信息
	 * @param fcomanyid
	 * @return
	 */
	List<Remunerationasc> selectRemunerationasc(@Param("fid")String fcomanyId);

	/**
	 * 查找最大编码
	 * @return
	 */
	String selectFnumber(String companyId);

	/**
	 * 根据fid和组织查找定薪定级信息
	 * @param fcomanyid 组织id
	 * @param fid
	 * @return
	 */
	Remunerationasc selectRemunerationascByFid(@Param("fcompanyid")String fcompanyid,@Param("fid")String fid);

	/**
	 * 根据名称查找定薪定级信息
	 * @param map
	 * @return
	 */
	List<Remunerationasc> selectRemunerationascByName(Map<String,String> map);


}